package com.chinaunicom.structure.adapter.twoway;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/21 10:20
 * Description:
 */
public class ObjectAdapterTest {
    public static void main(String[] args) {
        TwoWayAdaptee twoWayAdaptee = new AdapterRealize();
        TwoWayAdapter twoWayAdapter = new TwoWayAdapter(twoWayAdaptee);
        
        twoWayAdapter.request();



        TwoWayTarget twoWayTarget = new TargetRealize();
        twoWayAdapter = new TwoWayAdapter(twoWayTarget);
        
        twoWayAdapter.specificRequest();
    }
}
